<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			window.onload = function()
			{
				let btn = document.querySelector('button');
				btn.onclick = function(event)
				{
					console.log(event);
					// console.log(event.clientX);
					// console.log(event.clientY);
				}
			}
		</script>
	</head>
	<body>
		<button>按钮</button>
	</body>
</html>